const routes = [
  {
    path: '/',
    component: '../layouts/BasicLayout',
    Routes: ['src/pages/Authorized'], // umi的权限控制插件，如不需要验证去掉即可
    authority: ['admin', 'user'],
    routes: [
      {
        path: '/',
        name: '知流向服务',
        icon: 'dashboard',
        // redirect: '/knowFlow/purchase',
        routes: [
          {
            name: '查询进购',
            path: '/knowFlow/purchase',
            component: './knowFlow/Purchase',
          },
          {
            name: '查询流向',
            path: '/knowFlow/flowTo',
            component: './knowFlow/FlowTo',
          },
          {
            name: '查询库存',
            path: '/knowFlow/stock',
            component: './knowFlow/Stock',
          },
          {
            name: '管理用户',
            path: '/knowFlow/AccountManagement',
            component: './knowFlow/AccountManagement',
          },
        ],
      },
    ],
  },
];

export default routes;
